#include "mine.h"

void Output3 (char* fn1, double t, Array<double,1> ne, Array<double,1> rho, Array<double,1> E)
{
    FILE* file = fopen(fn1, "w");
    fprintf (file, "The time: %f\n", t);
    for (int j = 0; j < J; j++) {
	double x = double(j) * L / double (J);
	fprintf (file, "%e %e %e %e\n", x, ne(j), rho(j), E(j));
    }
    double x = L;
    fprintf (file, "%e %e %e %e\n", x, ne(0), rho(0), E(0));
    fclose(file);
}
